<?php echo $this->Form->create('Filter', array('class' => 'well well-small')); ?>
<div class="row-fluid">
	<div class="control-group span4">
		<?php echo $this->Form->Label('categoria', 'Categoria', array('class' => 'control-label'));	?>
		<div class="controls">
			<?php echo $this->Form->input('Filter.categoria_id', array('options' => $categorias, 'empty' => true, 'label' => false, 'div' => false, 'class' => 'span12', 'error' => false));	?>
		</div>
	</div>
	<div class="control-group span4">
		<?php echo $this->Form->Label('localizacao', 'Localizacao', array('class' => 'control-label'));	?>
		<div class="controls">
			<?php echo $this->Form->input('Filter.localizacao_id', array('options' => $localizacaos, 'empty' => true, 'label' => false, 'div' => false, 'class' => 'span12', 'error' => false));	?>
		</div>
	</div>
	<div class="control-group span4">
		<?php echo $this->Form->Label('projeto', 'Projeto', array('class' => 'control-label'));	?>
		<div class="controls">
			<?php echo $this->Form->input('Filter.projeto_id', array('options' => $projetos, 'empty' => true, 'label' => false, 'div' => false, 'class' => 'span12', 'error' => false));	?>
		</div>
	</div>
</div>
<div class="row-fluid">
	<div class="control-group span12">
		<?php echo $this->Form->Label('descricao', 'Descricao', array('class' => 'control-label'));	?>
		<div class="controls">
			<?php echo $this->Form->input('Filter.descricao', array('label' => false, 'div' => false, 'class' => 'span8', 'placeholder' => 'Digite a categoria que está procurando')); ?>
			<?php echo $this->Form->button('<i class="icon-search icon-white"></i> Filtrar', array('type' => 'submit', 'div' => false, 'class' => 'btn btn-primary', 'escape' => false)); ?>
		</div>
	</div>
</div>
<?php echo $this->Form->end(); ?>

<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
	<th width="20%"><?php echo $this->Paginator->sort('id');?></th>
	<th><?php echo $this->Paginator->sort('descricao');?></th>
	<th width="25%"><?php echo $this->Paginator->sort('nome', 'Categoria');?></th>
	<th width="25%"><?php echo $this->Paginator->sort('local');?></th>
</tr>
</thead>
<tbody>
<?php
		foreach ($equipamentos as $equipamento): ?>
<tr>
	<td><?php echo h($equipamento['Equipamento']['id']); ?>&nbsp;</td>
	<td><?php echo $this->Html->link($equipamento['Equipamento']['descricao'], array('controller' => 'equipamento', 'action' => 'search', $equipamento['Equipamento']['id'])); ?>&nbsp;</td>
	<td>
	<?php echo $this->Html->link($equipamento['Categoria']['nome'], array('controller' => 'categorias', 'action' => 'view', $equipamento['Categoria']['id'])); ?>
</td>
	<td>
	<?php echo $this->Html->link($equipamento['Localizacao']['local'], array('controller' => 'localizacaos', 'action' => 'view', $equipamento['Localizacao']['id'])); ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>